<template>
	<view>
		<view class="user-block">
        <form @submit="$emit('_formIdSubmit',$event)" :data-type="param.open_type" :data-url="param.url" reportSubmit="true">
            <button formType="submit" id="_formIdSubmit" class="_formIdSubmit">
                <view class="w-100" v-if="param.pic_url">
                    <image class="w-100" mode="widthFix" :src="param.pic_url" style="display:block"></image>
                </view>
                <view class="time-block">
                    <view v-if="time_all['time_'+template_index].param.start_time>0">距离活动开始还有</view>
                    <view v-else-if="time_all['time_'+template_index].param.end_time>0">距离活动结束还有</view>
                    <view v-else>活动已结束</view>
                    <view>{{time_all['time_'+template_index].param.time_list.content}}</view>
                    <image mode="aspectFill" :src="param.pic_url_1"></image>
                </view>
            </button>
        </form>
    </view>
	</view>
</template>

<script>var myVue = {};
	export default {
		props:['param','time_all','template_index'],
		data() {
			return {
				
			};
		}
	}
</script>

<style scoped>

</style>
